function printNums(arr, curr) {
    var child = document.createElement("div");
    var text = "";
    for (var i = 0; i < arr.length; i++) {

        if (i === curr) {
            if (i != arr.length - 1) {
                text += '<span class="curr-num">' + arr[i] + "</span>,";
            } else {
                text += '<span class="curr-num">' + arr[i] + "</span>";
            }
        } else {
            if (i != arr.length - 1) {
                text += arr[i] + ",";
            } else {
                text += arr[i] + "";
            }
        }
    }
    child.innerHTML = text;

    setTimeout(function () {
        arrDiv.appendChild(child);
    }, curr * 1000);
}